<?php
	if(!array_key_exists("account", $_GET)){
		$account = 4;
	} else {
		if(array_key_exists("userdata", $_COOKIE)){
			$account = $_GET['account'];
			list($password, $email, $account, $fname, $lname, $group_code) = explode(",", $_COOKIE['userdata']);
		} else {
			$account = 4;
		}
	}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Pie Education | Create an Account</title>
<Meta name="Keywords" content="education, course, learning, online, virtual, e-learning, school, student, teacher, homework, educational platform, educational system, free tool">
<Meta name="Description" content="Pie Education is a internet based Course Management System (CMS)">
<Meta name="Author" content="Rob Keller">
<Meta name="Publisher" content="Aaron Aceves">
<Meta name="Copyright" content="Copyright© 2012, Pie Education">
<Meta name="Revisit-After" content="30 days">
<Meta HTTP-EQUIV="Expires" content="none">
<Meta name="Pagetopic" content="Education">
<Meta name="Audience" content=" All">
<Meta name="Robots" content="INDEX,FOLLOW">
<Meta name="Content-Language" content="English">
<link rel="shortcut icon" type="image/x-icon" href="/favicon.ico" />
<link rel="stylesheet" href="css/style.css" />
<script type="text/javascript" src="js/index.js"></script>
</head>

<body>
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td height="90" bgcolor="#FF8C00" align="center"><table width="980" border="0" align="center" cellpadding="0" cellspacing="0">
      <tr>
        <td><a href="index.php"><img src="images/logo.png" alt="Return to Index" width="235" height="63" border="0" title="pie.edu an E-Learning Network" /></a></td>
      </tr>
    </table></td>
  </tr>
  <tr>
    <td height="450" bgcolor="#FFFFFF" align="center"><table width="980" border="0" align="center" cellpadding="0" cellspacing="0">
      <tr>
        <td style="padding-right:20px;" align="justify"><h2>This is how you need is pie.edu, this is why:</h2>
          <ul>
            <li> Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor </li>
            <li>incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud </li>
            <li>exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse </li>
            <li>cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum </li>
            </ul>
          <h2>We are waiting for you answer, all you have to do is:</h2>
          <p> Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
          <p> Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum </p>
          <p align="right"><strong>Sincerely,</strong><br />
            Robert Keller<br />
            pie.edu site owner
          </p></td>
        <td width="400" align="center"><?php
	switch($account){
		case "1":
		echo '<div id="account1" style="width:380px;height:400px;overflow:auto;border-style:solid;border-width:thin;border-color:#F93">
			<form id="student" name="student" method="post" action="create_account_action.php" onsubmit="return student_validation();">
              <table width="100%" border="0" align="center" cellpadding="4" cellspacing="2">
                <tr>
                  <td colspan="2" align="center" style="color:#000" height="30"><h2>Create a Student Account</h2></td>
                </tr>
                <tr>
                  <td width="100" align="right" style="color:#f00"><strong>Username</strong></td>
                  <td><label for="username" style="color:#f00">Username already taken, choose another</label>
                  <input name="username" type="text" id="username" size="30" style="background-color:#f37474;color:#fff;" /></td>
                </tr>
                <tr>
                  <td align="right">Password</td>
                  <td><label for="password"></label>
                  <input name="password" type="password" id="password" size="30" value="'.$password.'" /></td>
                </tr>
                <tr>
                  <td align="right">Email</td>
                  <td><label for="email"></label>
                  <input name="email" type="text" id="email" size="30" value="'.$email.'" /></td>
                </tr>
                <tr>
                  <td align="right">First Name</td>
                  <td><label for="fname"></label>
                  <input name="fname" type="text" id="fname" size="30" value="'.$fname.'" /></td>
                </tr>
                <tr>
                  <td align="right">Last Name</td>
                  <td><label for="lname"></label>
                  <input name="lname" type="text" id="lname" size="30" value="'.$lname.'" /></td>
                </tr>
                <tr>
                  <td align="right">School Code</td>
                  <td><label for="group_code"></label>
                  <input name="group_code" type="text" id="group_code" size="10" value="'.$group_code.'" /></td>
                </tr>
                <tr>
                  <td>&nbsp;</td>
                  <td style="font-size:10px; color:#666">Click in the button below means you have read and accept our <a href="privacy.html" target="_blank">Terms of Use</a> and our <a href="privacy.html" target="_blank">Privacy Policy</a></td>
                </tr>
                <tr>
                  <td>&nbsp;</td>
                  <td><input type="submit" name="button" id="button" value="Create Account" class="submit" />
                  <input name="account" type="hidden" id="account" value="1" /></td>
                </tr>
              </table>
            </form>
		</div>';
		break;
    	case "2":
		echo '<div id="account1" style="width:380px;height:380px;overflow:auto;border-style:solid;border-width:thin;border-color:#F93">
			<form id="teacher" name="teacher" method="post" action="create_account_action.php" onsubmit="return teacher_validation();">
              <table width="100%" border="0" align="center" cellpadding="4" cellspacing="2">
                <tr>
                  <td colspan="2" align="center" style="color:#000" height="30"><h2>Create a Teacher Account</h2></td>
                </tr>
                <tr>
                  <td width="100" align="right" style="color:#f00"><strong>Username</strong></td>
                  <td><label for="username" style="color:#f00">Username already taken, choose another</label>
                  <input name="username" type="text" id="username" size="30" style="background-color:#f37474;color:#fff;" /></td>
                </tr>
                <tr>
                  <td align="right">Password</td>
                  <td><label for="password"></label>
                  <input name="password" type="password" id="password" size="30" value="'.$password.'" /></td>
                </tr>
                <tr>
                  <td align="right">Email</td>
                  <td><label for="email"></label>
                  <input name="email" type="text" id="email" size="30" value="'.$email.'" /></td>
                </tr>
                <tr>
                  <td align="right">First Name</td>
                  <td><label for="fname"></label>
                  <input name="fname" type="text" id="fname" size="30" value="'.$fname.'" /></td>
                </tr>
                <tr>
                  <td align="right">Last Name</td>
                  <td><label for="lname"></label>
                  <input name="lname" type="text" id="lname" size="30" value="'.$lname.'" /></td>
                </tr>
                <tr>
                  <td>&nbsp;</td>
                  <td style="font-size:10px; color:#666">Click in the button below means you have read and accept our <a href="terms.html" target="_blank">Terms of Use</a> and our <a href="privacy.html" target="_blank">Privacy Policy</a></td>
                </tr>
                <tr>
                  <td>&nbsp;</td>
                  <td><input type="submit" name="button" id="button" value="Create Account" class="submit" />
                  <input name="account" type="hidden" id="account" value="2" /></td>
                </tr>
              </table>
            </form>
		</div>';
		break;
    	case "3":
		echo '<div id="account1" style="width:380px;height:400px;overflow:auto;border-style:solid;border-width:thin;border-color:#F93">
			<form id="developer" name="developer" method="post" action="create_account_action.php" onsubmit="return developer_validation();">
              <table width="100%" border="0" align="center" cellpadding="4" cellspacing="2">
                <tr>
                  <td colspan="2" align="center" style="color:#000" height="30"><h2>Create a Developer Account</h2></td>
                </tr>
                <tr>
                  <td width="100" align="right" style="color:#f00"><strong>Username</strong></td>
                  <td><label for="username" style="color:#f00">Username already taken, choose another</label>
                  <input name="username" type="text" id="username" size="30" /></td>
                </tr>
                <tr>
                  <td align="right">Password</td>
                  <td><label for="password"></label>
                  <input name="password" type="password" id="password" size="30" value="'.$password.'" /></td>
                </tr>
                <tr>
                  <td align="right">Email</td>
                  <td><label for="email"></label>
                  <input name="email" type="text" id="email" size="30" value="'.$email.'" /></td>
                </tr>
                <tr>
                  <td align="right">First Name</td>
                  <td><label for="fname"></label>
                  <input name="fname" type="text" id="fname" size="30" value="'.$fname.'" /></td>
                </tr>
                <tr>
                  <td align="right">Last Name</td>
                  <td><label for="lname"></label>
                  <input name="lname" type="text" id="lname" size="30" value="'.$lname.'" /></td>
                </tr>
                <tr>
                  <td align="right">Payment Account</td>
                  <td style="font-size:10px; color:#666"><select name="select" id="select">
                    <option value="1" selected="selected">Paypal</option>
                    <option value="2">Credit Card</option>
                  </select></td>
                </tr>
                <tr>
                  <td>&nbsp;</td>
                  <td style="font-size:10px; color:#666">Click in the button below means you have read and accept our <a href="terms.html" target="_blank">Terms of Use</a> and our <a href="privacy.html" target="_blank">Privacy Policy</a></td>
                </tr>
                <tr>
                  <td>&nbsp;</td>
                  <td><input type="submit" name="button" id="button" value="Create Account" class="submit" />
                  <input name="account" type="hidden" id="account" value="3" /></td>
                </tr>
              </table>
            </form>
		</div>';
		break;
		case "4":
		echo '<div id="account1" style="width:380px;height:420px;overflow:auto;border-style:solid;border-width:thin;border-color:#F93">
			<form id="custom" name="custom" method="post" action="create_account_action.php" onsubmit="return custom_validation();">
              <table width="100%" border="0" align="center" cellpadding="4" cellspacing="2">
                <tr>
                  <td colspan="2" align="center" style="color:#000" height="30"><h2>Create Your Free Account</h2></td>
                </tr>
                <tr>
                  <td width="100" align="right">Username</td>
                  <td><label for="username"></label>
                  <input name="username" type="text" id="username" size="30" /></td>
                </tr>
                <tr>
                  <td align="right">Password</td>
                  <td><label for="password"></label>
                  <input name="password" type="password" id="password" size="30" value="" /></td>
                </tr>
                <tr>
                  <td align="right">Email</td>
                  <td><label for="email"></label>
                  <input name="email" type="text" id="email" size="30" value="" /></td>
                </tr>
                <tr>
                  <td align="right">First Name</td>
                  <td><label for="fname"></label>
                  <input name="fname" type="text" id="fname" size="30" value="" /></td>
                </tr>
                <tr>
                  <td align="right">Last Name</td>
                  <td><label for="lname"></label>
                  <input name="lname" type="text" id="lname" size="30" value="" /></td>
                </tr>
				<tr>
                  <td align="right">School Code</td>
                  <td><label for="group_code"></label>
                  <input name="group_code" type="text" id="group_code" size="10" value="" /></td>
                </tr>
                <tr>
                  <td align="right">Account Type</td>
                  <td style="font-size:10px; color:#666"><select name="account" id="account">
                    <option value="1" selected="selected">I\'m a Student</option>
                    <option value="2">I\'m a Teacher</option>
                    <option value="3">I\'m a Developer</option>
                  </select></td>
                </tr>
                <tr>
                  <td>&nbsp;</td>
                  <td style="font-size:10px; color:#666">Click in the button below means you have read and accept our <a href="terms.html" target="_blank">Terms of Use</a> and our <a href="privacy.html" target="_blank">Privacy Policy</a></td>
                </tr>
                <tr>
                  <td>&nbsp;</td>
                  <td><input type="submit" name="button" id="button" value="Create Account" class="submit" /></td>
                </tr>
              </table>
            </form>
		</div>';
		break;
	}
	
	?></td>
      </tr>
    </table></td>
  </tr>
  <tr>
    <td height="80" bgcolor="#FF9933" align="center"><a href="index.php" class="bottom-general-menu" style="color:#FFF">Home</a> <a href="platform.php" class="bottom-general-menu" style="color:#FFF">Platform</a> <a href="piephone.php" class="bottom-general-menu" style="color:#FFF">Pie Phone</a> <a href="company_training.php" class="bottom-general-menu" style="color:#FFF">Company Training</a> <a href="jobs.php" class="bottom-general-menu" style="color:#FFF">Jobs</a> <a href="press.php" class="bottom-general-menu" style="color:#FFF">Press</a> <a href="community/" class="bottom-general-menu" style="color:#FFF">Community</a> <a href="mobile.php" class="bottom-general-menu" style="color:#FFF">Mobile</a> <a href="support/" class="bottom-general-menu" style="color:#FFF">Help</a> <a href="blog/" class="bottom-general-menu" style="color:#FFF">Blogs</a> <a href="forums/" class="bottom-general-menu" style="color:#FFF">Forums</a><a href="about.php" class="bottom-general-menu" style="color:#FFF">About</a> <a href="terms.html" class="bottom-general-menu" style="color:#FFF">Terms of Use</a> <a href="privacy.html" class="bottom-general-menu" style="color:#FFF">Privacy Policy</a> <a href="contact-us.php" class="bottom-general-menu" style="color:#FFF">Contact Us</a></td>
  </tr>
</table>
</body>
</html>
